package com.corpgovernment.common.apollo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class SupplierSystemApollo extends CommonApollo {

    /**
     * 待定CAS验签key
     */
    @Value("${login_auth_key:''}")
    private String loginAuthKey;
    /**
     * cas调整url
     */
    @Value("${login_auth_direct_url:''}")
    private String loginAuthDirectUrl;
    /**
     * cas地址
     */
    @Value("${login_auth_sysid:''}")
    private String loginAuthSysid;
    /**
     * cas页面
     */
    @Value("${login_auth_directStr:}")
    private String loginAuthDirectStr;
    /**
     * cas获取登录态url
     */
    @Value("${getTicketUrl:}")
    private String getTicketUrl;

    /**
     * 待定CAS验签key
     */
    public String getLoginAuthKey() {
        return getAppProperty("login_auth_key", null);
    }
    /**
     * cas调整url
     */
    public String getLoginAuthDirectUrl() {
        return getAppProperty("login_auth_direct_url", null);
    }
    /**
     * cas地址
     */
    public String getLoginAuthSysid() {
        return getAppProperty("login_auth_sysid", null);
    }
    /**
     * cas页面
     */
    public String getLoginAuthDirectStr() {
        return getAppProperty("login_auth_directStr", null);
    }
    /**
     * cas获取登录态url
     */
    public String getGetTicketUrl() {
        return getAppProperty("getTicketUrl", null);
    }


}
